﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DDD {
    /// <summary>
    /// サブメッシュ情報構造体
    /// </summary>
    public struct Submesh {
        /// <summary>
        /// コンストラクター
        /// </summary>
        /// <param name="vbuf"><see cref="VertexBuffer"/>オブジェクト</param>
        /// <param name="ibuf"><see cref="IndexBuffer"/>オブジェクト</param>
        /// <param name="app"><see cref="Appearance"/>オブジェクト</param>
        public Submesh (VertexBuffer vbuf, IndexBuffer ibuf, Appearance app)
            : this () {
            this.VertexBuffer = vbuf;
            this.IndexBuffer = ibuf;
            this.Appearance = app;
        }
        /// <summary>
        /// 頂点バッファー
        /// </summary>
        public VertexBuffer VertexBuffer { get; private set; }

        /// <summary>
        /// インデックスバッファー
        /// </summary>
        public IndexBuffer IndexBuffer { get; private set; }

        /// <summary>
        /// アピアランス
        /// </summary>
        public Appearance Appearance { get; private set; }
    }
}
